<?php

namespace Sim\SimBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class PerfilUsuarioType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('fecha_creado')
            ->add('fecha_aprobado')
            ->add('activo')
            ->add('perfil')
            ->add('creado_por')
            ->add('aprobador_por')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Sim\SimBundle\Entity\PerfilUsuario'
        ));
    }

    public function getName()
    {
        return 'sim_simbundle_perfilusuariotype';
    }
}
